package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.LogicExpressionNotContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.LogicExpressionAndContext;

/**
 * logic expression and 语法遍历
 * @author zwd
 *
 */
public class LogicExpressionAndVisitor extends AbsCQLParserBaseVisitor<LogicExpressionAndContext>{
	
	private LogicExpressionAndContext context = null;
	
	public LogicExpressionAndVisitor() {
		context = new LogicExpressionAndContext();
	}
	
	@Override
	protected LogicExpressionAndContext defaultResult() {
		return context;
	}
	
	@Override
	public LogicExpressionAndContext visitLogicExpressionNot(LogicExpressionNotContext ctx) {
		LogicExpressionNotVisitor visitor = new LogicExpressionNotVisitor();
        context.getExpressions().add(visitor.visit(ctx));
        return context;
	}

}
